package edu.arizona.eller.mis.liferoulette.db.dao;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import edu.arizona.eller.mis.liferoulette.db.DatabaseManager;

/**
 * @author Blaine Boule - blaineb@email.arizona.edu
 *
 */
public class BaseDAO {
	private Context context;
	protected SQLiteDatabase db;
	
	public BaseDAO(Context context) {
		this.context = context;
		DatabaseManager dm = new DatabaseManager(this.context);
		db = dm.getWritableDatabase();
	} 
	
	
	public void closeDAO(){
		db.close();
	}
}
